﻿<UserControl x:Class="TorstenMandelkow.SharePointSoftwareFactory_HiveViewer.MyControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             Name="MyToolWindow"
             Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowBackgroundKey}}" SizeChanged="MyToolWindow_SizeChanged">
    <Grid>
        <StackPanel Orientation="Vertical">
            <TreeView Height="296" Name="treeView1" Width="288" ItemsSource="{Binding}" SelectedItemChanged="treeView1_SelectedItemChanged">
                <TreeView.Resources>
                    <ContextMenu x:Key="FolderContext" StaysOpen="True">
                        <MenuItem Header="Open" />                        
                    </ContextMenu>
                    <ContextMenu x:Key="FileContext" StaysOpen="True">
                        <MenuItem Header="Open" />
                        <MenuItem Header="Locate in Solution Explorer" />
                    </ContextMenu>
                </TreeView.Resources>
            </TreeView>
        </StackPanel>
    </Grid>
</UserControl>
